/**
 * 
 */
package com.jiang.factory;

/**
 * @author Administrator
 *
 */
public class DAOFactory {
	
	// 构造函数私有化
	private DAOFactory(){
		
	}
	
	/**
	 * @获取具体Dao实现类
	 * @param clz
	 * @return
	 */
	public static<T> T getInstance(Class<T> clz){
		T instance = null;
		try {
			instance = clz.newInstance();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		return instance;
	}
	
	

}
